# -*- coding: UTF-8 -*-
# Project : bio_tc
# File : crawl.py
# IDE : PyCharm
# Author : 博科（鑫贝西）田聪
# Date : 2021/12/1 17:17
import datetime
from spider.b2b168 import b2bb168Spider
import time
if __name__ == '__main__':

    # ins.saveimg('https://img1.17img.cn/17img/images/202109/uepic/fa23564b-1b01-48c5-a78f-94daae94f136.jpg')

    while True:
        try:
            oldtime = datetime.datetime.now()
            ins = b2bb168Spider()
            ins.start_request()
            newtime = datetime.datetime.now()
            print(f"{oldtime}开始###########{newtime}结束")
        except Exception as e:
            print(e)
            print('休眠6000秒')

        time.sleep(6000)